// is-a relationship : Banana is a fruit
#include <iostream>
using namespace std;

class Array
{
    private:
        int arr[10];
    public:
        void insert(int num, int pos)
        {
            arr[pos] = num;
        }
};

class STACK: private Array
{
        int top;
    public:
        void push(int val)
        {
            insert(val, top);
            top++;
        }
};

int main()
{
    STACK s;
    // s.top = 0;
    // s.push(5);
}

/*
class Car
{
    int gear;
    public:
        void gearIncrement()
        {
            if (gear < 5)
                gear++;
        }
};

class SportsCar:public Car
{

};
*/